package com.card323.crpg.skill;

import java.util.ArrayList;

import com.card323.crpg.Hero;
import com.card323.crpg.effect.Effect;

public class SelfTargetSkill extends Skill {
	public SelfTargetSkill() {
		super();
		_is_need_target = false;
	}

	public void active(Hero owner,ArrayList<Hero> targets) {

		owner.get_bi().get_ap().minus_action_point(_active_ap_cost);
		owner.get_bi().send_message_to_all(owner.get_name() + "施放了" + _name);

		for (Effect effect : _effects) {
			effect.affect(owner);
		}

	}
}
